<template>
  <div class="w1300 flex">
    <div class="catalog-wrap">
      <h2>目录</h2>
      <ul>
        <li v-for="item in 5" :key="item">
          <span>
            这是一个目录一个目录名称asdsadasdasd撒大大是大大大{{ item }}
          </span>
          <div class="flex-yc">
            <el-button type="primary" link>编辑</el-button>
            <el-button type="danger" link>删除</el-button>
          </div>
        </li>
      </ul>
    </div>
    <div class="content">
      <h2>这是一个目录名称1</h2>
      <editor-input v-model:value="content"></editor-input>
    </div>
  </div>
</template>

<script setup lang="ts">
import EditorInput from '@/components/control/editor/index.vue'
import { ref } from 'vue'

const content = ref('')
</script>

<style scoped lang="scss">
.w1300 {
  padding-top: 43px;
  .catalog-wrap {
    flex: 1;
    padding-right: 50px;
    h2 {
      font-weight: bold;
      font-size: 20px;
      margin-bottom: 30px;
    }
    ul {
      li {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px;
        font-size: 14px;
        color: #333;
        cursor: pointer;
        line-height: 16px;
        &:hover {
          color: $primary;
        }
      }
    }
  }
  .content {
    flex: 3;
    > h2 {
      font-size: 16px;
      color: #333;
      margin-bottom: 25px;
    }
  }
}
</style>
